package face.pay.common.enterprise.service.impl;

import face.pay.common.enterprise.service.IMchAgencyInfoService;
import face.pay.dao.MchAgencyInfoDao;
import face.pay.entity.MchAgencyInfo;
import face.pay.entity.UserInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Classname MchAgencyInfoServiceImpl
 * @Description JJL
 * @Date 2019/10/18 16:14
 */
@Service
@Slf4j
public class MchAgencyInfoServiceImpl implements IMchAgencyInfoService {

    @Autowired
    private MchAgencyInfoDao mchAgencyInfoDao;

    /**
     * 查询代理商下的商家
     *
     * @param agencyId
     * @return
     */
    @Override
    public List<MchAgencyInfo> mchUserList(Integer agencyId) {
        return mchAgencyInfoDao.queryMchUserId(agencyId);
    }


}
